Repository navigation
Resolve the audio output sink through EasyEffects 8 - #13396
Conversation
omarchy-audio-output-sink follows a DSP sink to the physical sink through the DSP's playback stream. EasyEffects 8 has no such stream: its output node links its ports straight to the sink's playback ports, so the search found nothing and the volume keys, the bar's audio panel and the output switcher all acted on easyeffects_sink itself. That sink's volume is inert -- its monitor, which EasyEffects reads, does not follow it -- so the OSD moved while the speakers did not. Follow the port links to the alsa_output sink instead, and when EasyEffects is idle and has dropped them, use the output device its settings name, if that sink exists. Filter-chain tunings keep resolving through their stream as before. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Automated AI review
Outcome: While EasyEffects plays into Bluetooth headphones, the live port link is ignored and the resolver falls back to Only
|
EasyEffects plays into Bluetooth headphones through the same direct port links as into a card, but only alsa_output targets were followed, so with headphones on the keys fell back to the settings file -- which can still name the speakers -- or to easyeffects_sink. Match bluez_output sinks as well, and compare the configured device name literally rather than as a regex. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/testing.md asks every shell test to start with set -euo pipefail and source base-test.sh through BASH_SOURCE; without it a failed mktemp leaves test_home empty and reset_scenario goes on to rm -rf /data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Thank you, @stefanoverna. Reviewed at I pushed two commits to your branch:
Tests on the worker: One limitation remains, and all three open fixes share it. When EasyEffects is idle it drops its links after a while, and the fallback then trusts #8713 and #9132 fix the same bug in the same lines. I compared the three diffs, and so did Codex Medium, separately and without being told my answer. Both of us picked this one. #8713 reads only the settings file, so it is wrong whenever the file is out of date. #9132 walks the link graph for any sink the switcher asks about, not only Waiting on the maintainer. |
Resolve the audio output sink through EasyEffects 8 (cherry picked from commit ea5e438)
omarchy-audio-output-sinkfollows a DSP sink to the physical sink through the DSP's playback stream. EasyEffects 8 has no such stream: its output node links its ports straight to the sink's playback ports, so the search finds nothing and the volume keys, the bar's audio panel and the output switcher all act oneasyeffects_sinkitself. That sink's volume is inert (its monitor, which EasyEffects reads, does not follow it), so the OSD moves while the speakers do not.Fix. Follow the port links (
pw-link -l) to thealsa_outputsink instead. When EasyEffects is idle it drops those links, so fall back to the output device named in its settings (~/.config/easyeffects/db/easyeffectsrc), if that sink exists. Filter-chain tunings keep resolving through their stream as before.Reproduce.
easyeffects --service-mode, makeeasyeffects_sinkthe default output, press the volume keys: the OSD changes, loudness does not. With the patch the keys and the panel move the card.Test.
test/shell.d/audio-output-sink-test.shstubspactlandpw-linkand covers: physical default, EasyEffects playing (port links), EasyEffects idle (configured device), a configured device that is gone, and a filter-chain tuning. Only this focused test was run.Tested on Omarchy 4.0.4 with EasyEffects 8.2.9 and PipeWire 1.6.8.
🤖 Generated with Claude Code
Fixes #9021
Fixes #12204